#include "AutoLock.h"

AutoLock::AutoLock(Mutex* pMutex)
{
    m_pMutex = pMutex;
    m_pMutex->Lock();
}

AutoLock::~AutoLock(void)
{
    m_pMutex->Unlock();
}

